package org.eclipse.moquette.server.netty.metrics;

/**
 * Created by alex on 15-5-29.
 */
public class BytesMetrics {

    private long m_readBytes = 0;
    private long m_wroteBytes = 0;

    /**
     * 增加读的字节数指标
     * @param numBytes
     */
    void incrementRead(long numBytes) {
        m_readBytes += numBytes;
    }

    /**
     * 增加写的字节数指标
     * @param numBytes
     */
    void incrementWrote(long numBytes) {
        m_wroteBytes += numBytes;
    }

    public long readBytes() {
        return m_readBytes;
    }

    public long wroteBytes() {
        return m_wroteBytes;
    }
}
